// 登录接口需要携带参数的ts类型
export interface loginForm {
    username: string,
    password: string
}


interface dataType {
    token?: string,
    message?: string
}
// 登录接口返回的数据类型
export interface loginResponseData {
    code: number,
    data: dataType
}

interface userInfoType {
    userId: number,
    avatar: string,
    username: string,
    password: string,
    desc: string,
    roles: Array<string>,
    buttons: Array<string>,
    routes: Array<string>,
    token: string,
}
// 查询详情返回的类型接口
export interface userResponseData {
    code: number,
    data: userInfoType
}


// 新增用户的返回值类型
export interface addUserData {
    code: number,
    data: userInfoType
}